// 获取合同时间是否失效
export function getConInvalid(start:string,end:string):boolean{
    let invalid:boolean = false
    const day = new Date()
    const year = day.getFullYear()
    let m:string = (day.getMonth() + 1).toString()
    let d = day.getDate().toString()
    m = m.padStart(2,"0")
    d = d.padStart(2,"0")
    const now = `${year}/${m}/${d}`
    if(start <= now && end >= now){
        return invalid = true
    }else{
        return invalid
    }
}